package net.pascalalma.hadoop;

import java.io.IOException;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

public class AllTranslationsReducer extends Reducer<Text,Text,Text,Text>{

	private Text result = new Text();

	@Override
	protected void reduce(Text key, Iterable<Text> values, Reducer<Text, Text, Text, Text>.Context context)
			throws IOException, InterruptedException {
		// TODO 자동 생성된 메소드 스텁
		String tr="";
		
		for (Text value:values){
			tr+="|"+value;
		}
		result.set(tr); 
		context.write(key,result);
	}
	
	
}
